using UnityEngine;
using System.Collections;

public class GhostMotor : BotBaseMotor {

    protected override InputData GetInput()
    {
        float distance = (stimulusPosition - transform.position).sqrMagnitude;

        if (distance <= stopDistance || Vector3.zero.Equals(stimulusPosition))
        {
            inputData.vert = 0;
            inputData.horiz = 0;
        }
        else
        {
            Debug.DrawLine(transform.position, stimulusPosition, Color.cyan);

            // inputData.vert = stimulusPosition.y - transform.position.y;
            // inputData.horiz = stimulusPosition.x - transform.position.x;

            inputData.vert = 1;
            inputData.horiz = 0;
        }


        return inputData;
    }
}
